<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="tag" uri="com.sand.myTag" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/public.css" media="all">
</head>
<body>
<label class="layui-form-label">房产信息</label>
<div class="layui-form layuimini-form">
    <div class="layui-form-item">
        <table style="width: 90%; margin:auto;">
            <tr>
                <td><div class="layui-form-item">
                    <label class="layui-form-label">市:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.cityNamePro}" disabled class="layui-input" />
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label">区/县:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.cityName}" disabled class="layui-input">
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label">小区:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.communityName}" disabled class="layui-input">
                    </div>
                </div></td>
            </tr>
            <tr>
                <td colspan="3"><div class="layui-form-item">
                    <label class="layui-form-label ">小区地址:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.communityAddress}" disabled class="layui-input">
                    </div>
                </div></td>
            </tr>
            <tr>
                <td><div class="layui-form-item">
                    <label class="layui-form-label ">房产类别:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.buildingType}" disabled class="layui-input">
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label">房产面积:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.constructionArea}" disabled class="layui-input">
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label">房产朝向:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.towards}" disabled class="layui-input">
                    </div>
                </div></td>
            </tr>
            <tr>
                <td><div class="layui-form-item">
                    <label class="layui-form-label ">房产类型:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.houseType}" disabled class="layui-input">
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label">楼层情况:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.floorSituation}" disabled class="layui-input">
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label">装修情况:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.renovationCondition}" disabled class="layui-input">
                    </div>
                </div></td>
            </tr>
            <tr>
                <td><div class="layui-form-item">
                    <label class="layui-form-label ">租赁方式:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.rentalType}" disabled class="layui-input">
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label">付款方式:</label>
                    <div class="layui-input-block">
                        <c:choose>
                            <c:when test="${houseShow.paymentMethod==0}">
                                <input type="text" value="免押金" disabled class="layui-input">
                            </c:when>
                            <c:when test="${houseShow.paymentMethod==1}">
                                <input type="text" value="押一付一" disabled class="layui-input">
                            </c:when>
                            <c:when test="${houseShow.paymentMethod==2}">
                                <input type="text" value="押一付二" disabled class="layui-input">
                            </c:when>
                            <c:when test="${houseShow.paymentMethod==3}">
                                <input type="text" value="押一付三" disabled class="layui-input">
                            </c:when>
                        </c:choose>
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label">租金:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.price}" disabled class="layui-input">
                    </div>
                </div></td>
            </tr>
            <tr>
                <td colspan="2"><div class="layui-form-item">
                    <label class="layui-form-label ">房产配置:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.housingConfiguration}" disabled class="layui-input">
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label">发布时间:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.createTime}" disabled class="layui-input">
                    </div>
                </div></td>
            </tr>
            <tr>
                <td colspan="3"><div class="layui-form-item">
                    <label class="layui-form-label ">描述:</label>
                    <div class="layui-input-block">
                        <textarea type="text" id="content" value="" disabled class="layui-textarea"></textarea>
                    </div>
                </div></td>
            </tr>
        </table>
    </div>
</div>
<hr/>
<label class="layui-form-label">房产记录</label>
<div class="layui-form layuimini-form">
    <div class="layui-form-item">
        <table style="width: 90%; margin:auto;">
            <tr>
                <td><div class="layui-form-item">
                    <label class="layui-form-label ">浏览量:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.browseNumber}" disabled class="layui-input">
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label">收藏量:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.collectionNumber}" disabled class="layui-input">
                    </div>
                </div></td>
            </tr>
            <tr>
                <td><div class="layui-form-item">
                    <label class="layui-form-label ">租赁状态:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.status}" disabled class="layui-input">
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label">审核状态:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${houseShow.auditStatus}" disabled class="layui-input">
                    </div>
                </div></td>
            </tr>
        </table>
    </div>
</div>
<hr/>
<label class="layui-form-label">房东信息</label>
<div class="layui-form layuimini-form">
    <div class="layui-form-item">
        <table style="width: 90%; margin:auto;">
            <tr>
                <td><div class="layui-form-item">
                    <label class="layui-form-label ">所有人:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${userShow.name}" disabled class="layui-input">
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label">性别:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${userShow.sex}" disabled class="layui-input">
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label ">手机号:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${userShow.phone}" disabled class="layui-input">
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label ">账户余额:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${userShow.balance}" disabled class="layui-input">
                    </div>
                </div></td>
            </tr>
            <tr>
                <td><div class="layui-form-item">
                    <label class="layui-form-label ">身份证号:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${userShow.idCard}" disabled class="layui-input">
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label">职业信息:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${userShow.jobInfo}" disabled class="layui-input">
                    </div>
                </div></td>
                <td><div class="layui-form-item">
                    <label class="layui-form-label">创建时间:</label>
                    <div class="layui-input-block">
                        <input type="text" value="${userShow.createTime}" disabled class="layui-input">
                    </div>
                </div></td>
            </tr>
        </table>
    </div>
</div>
<hr/>
<label class="layui-form-label">所有人图片</label>
<div class="layui-form layuimini-form">
    <div class="layui-form-item">
        <table style="width: 90%; margin:auto;">
            <tr>
                <td><div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">身份证正面:</label>
                    <div class="layui-input-block">
                        <img alt="暂未上传" src="${pageContext.request.contextPath}/renting/img/${userShow.idCardF}" style="width: 300px;height: 150px">
                    </div>
                </div></td>
                <td><div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">身份证反面:</label>
                    <div class="layui-input-block">
                        <img alt="暂未上传" src="${pageContext.request.contextPath}/renting/img/${userShow.idCardN}" style="width: 300px;height: 150px">
                    </div>
                </div></td>
            </tr>
        </table>
    </div>
</div>
<label class="layui-form-label">房产图片</label>
<div class="layui-form layuimini-form">
    <div class="layui-form-item">
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">房产证图片:</label>
            <div class="layui-input-block">
                <img alt="暂未上传" src="${pageContext.request.contextPath}/renting/img/${houseShow.housePicture}" style="width: 300px;height: 150px">
            </div>
        </div>

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">房产图片:</label>
                <div class="layui-input-block">
                    <c:forEach items="${imgsShow}" var="ite">
                    <img alt="暂未上传" src="${pageContext.request.contextPath}/renting/img/${ite.housePicture}" style="width: 280px;height: 150px">
                    </c:forEach>
                </div>
            </div>

    </div>
</div>

<script src="${pageContext.request.contextPath}/layui/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script>
    layui.use(['form', 'table'], function () {
        var $ = layui.jquery,
            form = layui.form,
            table = layui.table;

        $("#content").val("${houseShow.houseDescribe}")
    })
</script>

</body>
</html>